﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace JelleDruyts.Mollom.Client
{
    /// <summary>
    /// Defines the possible types of statistics that can be requested.
    /// </summary>
    [Flags]
    public enum StatisticsTypes
    {
        /// <summary>
        /// No statistics should be retrieved.
        /// </summary>
        None = 0,

        /// <summary>
        /// Number of days Mollom has been used.
        /// </summary>
        [Description("total_days")]
        TotalDays = 1,

        /// <summary>
        /// Total of accepted posts.
        /// </summary>
        [Description("total_accepted")]
        TotalAccepted = 2,


        /// <summary>
        /// Total of rejected spam posts.
        /// </summary>
        [Description("total_rejected")]
        TotalRejected = 4,


        /// <summary>
        /// Number of posts accepted yesterday.
        /// </summary>
        [Description("yesterday_accepted")]
        YesterdayAccepted = 8,


        /// <summary>
        /// Amount of spam blocked yesterday.
        /// </summary>
        [Description("yesterday_rejected")]
        YesterdayRejected = 16,


        /// <summary>
        /// Number of posts accepted today.
        /// </summary>
        [Description("today_accepted")]
        TodayAccepted = 32,


        /// <summary>
        /// Amount of spam posts rejected today.
        /// </summary>
        [Description("today_rejected")]
        TodayRejected = 64
    }
}